package br.com.bco.negocio;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.Index;

/**
 * 
 */
@MappedSuperclass
public class ObjetoPersistente implements Serializable {

    private static final long serialVersionUID = 4180923657312399659L;
    private Integer id;

    @Id
    @Column(name = "ID", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Index(name = "INDEX_PK_ID")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

}
